// npm run dev packages:project1 该命令未实现，可忽略
const args = process.argv.slice(2).join(":"); // 将参数数组拼接成字符串，便于准确比较
console.log(args);
// npm run dev packages project1
if (args === "packages:project1") {
  const { exec } = require("child_process");
  exec("lerna run dev --scope=project1", (error, stdout, stderr) => {
    if (error) {
      console.error(`执行命令出错: ${error.message}`);
      return;
    }
    console.log(stdout);
    console.log(stderr);
  });
}
